<div class="gopyhts view">
<h2><?php  __('Gopyht');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $gopyht['Gopyht']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($gopyht['User']['id'], array('controller' => 'users', 'action' => 'view', $gopyht['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Chude'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $gopyht['Gopyht']['chude']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Noidung'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $gopyht['Gopyht']['noidung']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngayghi'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $gopyht['Gopyht']['ngayghi']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ghichu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $gopyht['Gopyht']['ghichu']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Gopyht', true), array('action' => 'edit', $gopyht['Gopyht']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Gopyht', true), array('action' => 'delete', $gopyht['Gopyht']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $gopyht['Gopyht']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Gopyhts', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Gopyht', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phanhois', true), array('controller' => 'phanhois', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phanhois', true), array('controller' => 'phanhois', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Phanhois');?></h3>
	<?php if (!empty($gopyht['Phanhois'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Gopyht Id'); ?></th>
		<th><?php __('Phanhoi'); ?></th>
		<th><?php __('Ngaytrloi'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($gopyht['Phanhois'] as $phanhois):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phanhois['id'];?></td>
			<td><?php echo $phanhois['gopyht_id'];?></td>
			<td><?php echo $phanhois['phanhoi'];?></td>
			<td><?php echo $phanhois['ngaytrloi'];?></td>
			<td><?php echo $phanhois['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'phanhois', 'action' => 'view', $phanhois['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'phanhois', 'action' => 'edit', $phanhois['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'phanhois', 'action' => 'delete', $phanhois['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phanhois['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Phanhois', true), array('controller' => 'phanhois', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
